bitkeeper revision 1.513 (3f8bd32enJosHd07EPUZKBgRuaErAw)
authorsmh22@labyrinth.cl.cam.ac.uk <smh22@labyrinth.cl.cam.ac.uk>
Tue, 14 Oct 2003 10:42:54 +0000 (10:42 +0000)
committersmh22@labyrinth.cl.cam.ac.uk <smh22@labyrinth.cl.cam.ac.uk>
Tue, 14 Oct 2003 10:42:54 +0000 (10:42 +0000)
xen_log.c:
  now compiles - still not tested

tools/misc/xen_log.c

index 5adfa52fe5e5747eba64b47e096cff59fff50d5a..d5e2d1fa50e1350adefb34cd929d093b29f84c5a 100644 (file)
@@ -80,15 +80,15 @@ void process()
         curport = ntohs(from.sin_port);
         if(lastport != curport) {
            op.u.getdominfo.domain = (int)curport;
-           if ( do_dom0_op(&op) < 0 )
+           if ( do_dom0_op(&op) < 0 ) {
               log("Error resolving domain name\n");
            } else {
               lastport = curport;
            }
         }
 
-        sprintf(obuf, "[%s] %s", op.u.getdominfo.name, curport, buf);
-       log(obuf);
+        sprintf(obuf, "[%s] %s", op.u.getdominfo.name, buf);
+               log(obuf);
 
         fromlen = sizeof(from);
     }